import 'package:auto_route/auto_route.dart';
import 'bt_app_router.gr.dart';

/// flutter packages pub run build_runner build
@AutoRouterConfig(
  replaceInRouteName: 'Page,Route',
  deferredLoading: false,
)
class BtAppRouter extends $BtAppRouter {
  @override
  RouteType get defaultRouteType => const RouteType.material();

  @override
  List<AutoRoute> get routes => [
        /// routes go here
        AutoRoute(
          path: '/hostMainRoute',
          page: HostMainRoute.page,
          children: [
            AutoRoute(path: 'homeRoute', page: HomeRoute.page),
            AutoRoute(path: 'discoverRoute', page: DiscoverRoute.page),
            AutoRoute(path: 'messageRoute', page: MessageRoute.page),
            AutoRoute(path: 'profileRoute', page: ProfileRoute.page),
          ],
        ),
        AutoRoute(path: '/', page: BtBootRoute.page),
        AutoRoute(path: '/guideRoute', page: GuideRoute.page),
        AutoRoute(path: '/loginRoute', page: BtLoginRoute.page),
        AutoRoute(path: '/postDetailsRoute', page: PostDetailsRoute.page),
        AutoRoute(path: '/blockListRoute', page: BlockListRoute.page),
        AutoRoute(path: '/aboutRoute', page: AboutRoute.page),
        AutoRoute(path: '/webViewRoute', page: WebViewRoute.page),
        AutoRoute(path: '/coinShopRoute', page: CoinShopRoute.page),
        AutoRoute(path: '/accountSettingRoute', page: AccountSettingRoute.page),
        AutoRoute(path: '/modifyUserInfoRoute', page: ModifyUserInfoRoute.page),
        AutoRoute(path: '/middleEntryRoute', page: MiddleEntryRoute.page),
        AutoRoute(path: '/myTicketRoute', page: MyTicketRoute.page),
        AutoRoute(path: '/paySuccessRoute', page: PaySuccessRoute.page),
        AutoRoute(path: '/chatRoute', page: ChatRoute.page),
        AutoRoute(path: '/filePreviewRoute', page: FilePreviewRoute.page),
      ];
}
